#!/opt/homebrew/bin/python3.13

def add1(a, b):
    def plus(a, b):
        return a * b
    return plus(a, b) + b
print(add1(1, 2))

#闭包
def func1(a):
    def func2(b):
        return a + b
    return func2
f2 = func1(3)
print(f2(4))


# lambda
f3 = lambda a, b: a + b
print(f3(1, 2))



























